package com.bootdo.staticmask.service;

import com.bootdo.staticmask.core.bean.ColumnProperty;
import com.bootdo.staticmask.domain.MaskOracleDO;

import java.util.List;
import java.util.Map;

/**
 * 数据源
 * 
 * @author lkg
 * @email lkggod@163.com
 * @date 2018-04-25 11:27:35
 */
public interface MaskOracleService {
	
	MaskOracleDO get(Integer oracleId);
	
	List<MaskOracleDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(MaskOracleDO maskOracle);
	
	int update(MaskOracleDO maskOracle);
	
	int remove(Integer oracleId);
	
	int batchRemove(Integer[] oracleIds);
	
	List<Map<String, String>> getTables(Integer id);
	
	List<ColumnProperty> getColumns(Integer id, String owner, String tableName);
}
